import Vue from 'vue'
import App from './App'
// import customNav from './homepage/Test/Home/customNav/customNav.vue'
import store from './store/index.js'
// 自定义tabbar
// import Tabbar from './custom_tab_bar/cu_tab_bar.vue'
// 自定义顶部导航栏
import navbar from './navigation_bar/navigation_barr.vue'
// 自定义顶部导航栏 (定位导航栏)
import addressnavbar from './address_nav_bar/address_navigation_barr.vue'
// 另一个自定义导航栏
import tabBarBar from './tabBar/tabBar.vue'
// 另一个自定义navbar
import UniStatusBar from './uni_status_bar/uni-status-bar.vue'

Vue.component('nav-bar', navbar)
// Vue.component('tab-bar', Tabbar)
Vue.component('address-nav-bar', addressnavbar)
Vue.component('tabBar',tabBarBar)
Vue.component('uni-status-bar',UniStatusBar)

Vue.config.productionTip = false
// Vue.prototype.$api = Axios.create({
//   baseURL: 'http://re.gxqichang.cn'
// });

// Vue.component('custom-nav', customNav)

App.mpType = 'app'

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

const app = new Vue({
    ...App,
    store
})

// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/requestApi/http.interceptor.js';
Vue.use(httpInterceptor, app);

// http接口API抽离，免于写url或者一些固定的参数
import httpApi from '@/requestApi/http.api.js';
Vue.use(httpApi, app);

app.$mount()
